package com.example.myui.adapter;


import android.util.Log;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.myui.R;

import java.util.ArrayList;

public class HunPaiAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {
    private static final String TAG = HunPaiAdapter.class.getSimpleName();

    public HunPaiAdapter(ArrayList<Integer> images) {
        super(R.layout.item_image);
        Log.i(TAG, "HunPaiAdapter: " + images.size());
    }

    @Override
    protected void convert(BaseViewHolder holder, Integer image) {
        ImageView imageview = holder.getView(R.id.image_v);
        Glide.with(mContext)
                .load(image)
                .into(imageview);
    }
}
